package com.qf.interfacedemo;

public class AutoDemo {
    public static void main(String[] args) {
        AutoMan autoMan = new AutoMan();
        autoMan.fire();
        autoMan.fly();
        autoMan.dynamicLight();

        SuperMan superMan = autoMan;
        superMan.fire();
        superMan.fly();
        superMan.dynamicLight();

        Fireable f = autoMan;
        f.fire();

        Flyable ff = autoMan;
        ff.fly();
    }
}
